package com.map.map.thread;

/**
 * @author zhaoyunlong
 * @date 2020/11/3
 * @description
 */
public class ThreadDemo extends Thread {


    @Override
    public void run() {
        for (int i= 0; i<100; i++) {
            System.out.println(Thread.currentThread().getName() + "---------" + i);
        }
    }

    public static void main(String[] args) {



        ThreadDemo threadDemo = new ThreadDemo();
//        threadDemo.run();
        threadDemo.start();
        for (int i= 0; i<100; i++) {
            System.out.println(Thread.currentThread().getName() + "---------" + i);
        }
//        threadDemo.start();

    }
}
